import request from '@/utils/request'

// 查询笼位管理列表
export function listCage(query) {
  return request({
    url: '/animalManagement/cage/list',
    method: 'get',
    params: query
  })
}

// 查询笼位管理详细
export function getCage(cageId) {
  return request({
    url: '/animalManagement/cage/' + cageId,
    method: 'get'
  })
}

// 新增笼位管理
export function addCage(data) {
  return request({
    url: '/animalManagement/cage',
    method: 'post',
    data: data
  })
}

// 修改笼位管理
export function updateCage(data) {
  return request({
    url: '/animalManagement/cage',
    method: 'put',
    data: data
  })
}

// 删除笼位管理
export function delCage(cageId) {
  return request({
    url: '/animalManagement/cage/' + cageId,
    method: 'delete'
  })
}
// 获取人员主数据
  export function getUser() {
    return request({
      url: '/system/user/list?pageNum=1&pageSize=100',
      method: 'get'
    })


}
